<input type="text" maxlength="16" name="pass">这里怎么设置它的最小位数 比如说 :密码长度不低于6位
来源:百度知道 编辑:UC知道 时间:2024/05/22 15:35:03
这几个答案没帮上我,谁能写个简单的注册页面,只看密码这部分 能用我再加分
<%
pass=request.form("pass")
if len(pass)<6 then
response.write"<script>alert('密码长度不低於6位!');history.go(-1)</script>"
end if
%>
<input type="text" maxlength="16" name="pass">
<input type="button" value="你却认密码不少于6位或不大于15位,请点这里"
onclick="javascript:if(pass.value.length>15){alert('密码错误!密码大于15');history.back(-1)};if(pass.value.length<6){alert('密码错误!密码少于6位');history.back(-1)}">
用JS写
<script>
function slength()
{
if(document.form1.input1.value.length=="6")
{
alter"长度为6";
}
}
</script>
调用<input type="text" maxlength="16" name="pass" onclick="slength() ">
这个设置不了的,只有通过JS控制;
例如:当小于6个字符就显示提示信息代码:
<input type="text" name="
<input type="image" src="...">看看这个代码
jsp问题<input type="hidden" datafld="userId" />
要使用 <input type="text"> 里填写的数据作为参数
<input type="image">图片按钮怎么做成有提交的功能??
<input type="image" 网页表单提交的”怪“问题?高手进!!
<input type="textarea" >输入满一行怎样自动换行?
怎么用<input type="imgage">来提交form 表单
<input name="newsbook" type="checkbox" id="bestbook" value="1">关于type类型checkbox
<input type="button" value="提交" onClick="openpage()">
input type="hidden" name="TestCustomerID